﻿using DevExpress.ExpressApp.Blazor;
using Microsoft.AspNetCore.Components;

namespace XAF_React_Sample.Blazor.Server.Editors;

public class ReactSampleAdapter : IComponentContentHolder
{
    public ReactSampleModel Model { get; }

    public RenderFragment ComponentContent => ReactSampleRenderer.Create(Model);

    public ReactSampleAdapter(ReactSampleModel model)
    {
        Model = model;
    }
}
